@tool
class_name SimpleBar
extends Range

@export var color: Color

func _value_changed(_new_value: float) -> void:
	queue_redraw()


func _draw():
	var h := size.y * (value / max_value)
	draw_rect(Rect2(0, size.y - h, size.x, h), color)
